home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / macintosh / comm-faq.part1 < prev    next >
Encoding:
Text File  |  1995-07-25  |  38.5 KB  |  798 lines

  1. Subject: comp.sys.mac.comm Frequently Asked Questions [1/4]
  2. Newsgroups: comp.sys.mac.comm,news.answers,comp.answers
  3. From: davido@Princeton.EDU (David L. Oppenheimer)
  4. Date: Sat, 8 Oct 1994 14:30:54 GMT
  5.  
  6. Archive-name: macintosh/comm-faq/part1
  7. Last-modified: Sat Oct 8 1994
  8.  
  9. This is the Frequently Asked Questions (FAQ) list for comp.sys.mac.comm
  10. =======================================================================
  11.  
  12. This list of frequently asked questions and answers is intended to help
  13. reduce the number of "often asked questions" that make the rounds here
  14. in comp.sys.mac.comm. Since comp.sys.mac.comm is intended as a forum to
  15. discuss telecommunication (and related issues) that are specific to the
  16. Macintosh, most questions about modems, telecommunications in general,
  17. and other non-Macintosh specific communication questions are not listed
  18. here. The proper newsgroup for such questions is usually comp.dcom.modems.
  19.  
  20. This list is posted periodically (about once a month) to the Usenet 
  21. groups comp.sys.mac.comm, news.answers, and comp.answers. Latest versions
  22. of the FAQ can be retrieved via anonymous FTP from the following sites:
  23.  
  24. file://mac.archive.umich.edu/mac/misc/documentation/compsysmaccommfaq.txt
  25.  
  26. file://sumex-aim.stanford.edu/info-mac/comm/info/comp-sys-mac-comm-faq.txt
  27.  
  28. file://rtfm.mit.edu/pub/usenet/comp.sys.mac.comm/c.s.m.c_FAQ_[1_4]
  29.                                                  c.s.m.c_FAQ_[2_4]
  30.                                                  c.s.m.c_FAQ_[3_4]
  31.                                                  c.s.m.c_FAQ_[4_4]
  32.  
  33. It also available in the Macintosh SIG on Delphi for Delphi members.
  34.  
  35. This FAQ is purely a volunteer effort. Although every effort has been
  36. made to insure that answers are as complete and accurate as possible,
  37. NO GUARANTEE IS IMPLIED OR INTENDED. The editor and contributors have
  38. developed this FAQ as a service to Usenet. We hope you find it useful.
  39. It has been formatted in setext format for your browsing convenience;
  40. use a setext browser, such as EasyView, to take advantage of setext.
  41.  
  42. Please send your corrections and comments to the editor, David Oppenheimer, 
  43. at csmc-faq@phoenix.Princeton.EDU.
  44.  
  45.              SHARE THIS INFORMATION FREELY AND IN GOOD FAITH.
  46.              DO NOT DISTRIBUTE MODIFIED VERSIONS OF THIS FAQ.
  47.                DO NOT REMOVE THIS NOTICE OR THE TEXT ABOVE.
  48.               (INCLUDING THE 'LastModified' HEADER; THANKS.)
  49.  
  50. Exception to the above: Excerpts of this FAQ not exceeding 9000 characters
  51. in length may be reprinted PROVIDED that "the comp.sys.mac.comm Usenet
  52. newsgroup FAQ" is credited as the source of the information. Even in this
  53. case, no editing of the quoted material is permitted. If you have any
  54. questions about the reprint policy, send mail to csmc-faq@phoenix.Princeton.EDU.
  55.  
  56.  
  57. ================================================================================
  58.  
  59.                           **** TABLE OF CONTENTS: ****
  60.  
  61. [1] Modems and Cables
  62.  
  63.     [1.1] What kind of modem will work with my Macintosh?
  64.     [1.2] What kind of cable do I need to use my external modem with my
  65.           Macintosh? (Includes cable pinouts)
  66.     [1.3] What do V.32, V.42, bis, MNP, etc mean? 
  67.     [1.4] How fast can the Macintosh serial ports really go?
  68.     [1.5] How can I disable call-waiting when using my modem?
  69.  
  70. [2] File Formats and Conversion
  71.  
  72.     [2.1] What is a resource (or data) fork?
  73.     [2.2] What is MacBinary?
  74.     [2.3] What is BinHex? What is uuencode? What are atob/btoa ?
  75.     [2.4] What is Apple-Single/Double ?
  76.     [2.5] What do file suffixes like .hqx, .sit, .bin, etc ... mean
  77.           and how can I convert such files back to normal Macintosh
  78.           applications and documents?
  79.     [2.6] How can I use a binary-downloaded file that appears as an
  80.           unusable text file on the Mac desktop?
  81.  
  82. [3] Macintosh File-transfers
  83.  
  84.     [3.1] What program(s) do(es) Kermit, FTP (client), and/or
  85.           X,Y,Z-MODEM and where can I get them?
  86.     [3.2] What is the latest version of ZTerm?
  87.     [3.3] What is the Communications Toolbox (CTB)?
  88.     [3.4] Are there any public-domain or shareware Communication
  89.           Toolbox tools that support Kermit, and/or X,Y,Z-MODEM?
  90.     [3.5] How can I transfer Macintosh files to/from my Macintosh and
  91.           other non-Macintosh computers (eg: mainframes, UNIX boxes,
  92.           PCs)?
  93.     [3.6] What's the best compression program to use when uploading
  94.           files to an archive or BBS? Are there any other guidelines
  95.           I should follow?
  96.     [3.7] How can I use the programs that are posted to 
  97.           comp.binaries.mac?
  98.  
  99. [4] Introduction to AppleTalk (and Apple Remote Access)
  100.  
  101.     [4.1] What kind of hardware do I need to set up an LocalTalk
  102.           network?
  103.     [4.2] How can I change the Chooser "user" and name of my
  104.           Macintosh? Also: Why can I no longer change the name of
  105.           my hard-disk?
  106.     [4.3] What is Apple Remote Access ?
  107.     [4.4] Where can I get a Remote Access script for my modem? 
  108.     [4.5] How are IP packets transmitted over a LocalTalk network?
  109.     [4.6] How can I use Apple Remote Access to access the Internet via my
  110.         Mac at work?
  111.  
  112. [5] Networking, MacTCP, Telnet, SLIP, PPP
  113.  
  114.     [5.1] What is MacTCP and what kind of hardware and software do I
  115.           need to use it? 
  116.     [5.2] What is the difference between AppleTalk, LocalTalk,
  117.           EtherNet, EtherTalk, TCP/IP, etc?
  118.     [5.3] What is Telnet, and is there a Telnet program for the
  119.           Macintosh?
  120.     [5.4] Is there a FTP (client/server) program for the Macintosh?
  121.     [5.5] What are SLIP, CSLIP and PPP?
  122.     [5.6] How does MacTCP resolve names into IP addresses?
  123.  
  124. [6] MacX and Other Ways to Interface With UNIX
  125.  
  126.     [6.1] Can I run X-Windows on my Mac?
  127.     [6.2] How can I run MacX over a modem? Is it feasible?
  128.     [6.3] What is MacLayers and what do I need to use it?
  129.     [6.4] What are UW and MultiSession? Are there other programs like 
  130.           MacLayers?
  131.     [6.5] Is there a UNIX program that will convert between BinHex and
  132.           MacBinary?
  133.     [6.6] How can I create LaserWriter PostScript printer files and
  134.           print them on a PostScript printer connected to a UNIX
  135.           network?
  136.         [6.7] What is the Columbia AppleTalk Package (CAP)?
  137.         [6.8] How can I use the UNIX NFS file sharing protocol on my Mac?
  138.  
  139. [7] Sending and receiving Mail and Usenet News with your Macintosh
  140.  
  141.     [7.1] How can I send/receive Internet mail with my Macintosh?
  142.     [7.2] How can I read/post Usenet news with my Macintosh?
  143.  
  144. [8] Miscellaneous
  145.  
  146.     [8.1] I don't have FTP --- How can I access the various archives
  147.           through e-mail?
  148.     [8.2] What aids are available for programmers wishing to write TCP/IP
  149.           applications for the Macintosh?
  150.  
  151. Appendices:
  152.  
  153. [A]    List of Common File Suffixes and Abbreviations
  154. [B]    List of Macintosh archive sites available through the Internet
  155. [C]    Vendor Information
  156. [D]    Contributors
  157.  
  158. ================================================================================
  159.  
  160. [1] Modems and Cables
  161. =====================
  162.  
  163. [1.1] What kind of modem will work with my Macintosh?
  164. -----------------------------------------------------
  165.  
  166.         Any *external* Hayes compatible modem will work with your
  167.         Macintosh. There are too many to list or review here. The
  168.         USENET newsgroup comp.dcom.modems is a good place to ask questions
  169.         about the many different external Hayes compatible modems. Such
  170.         modems can be used with any computer (Macintosh, UNIX box,
  171.         MS-DOS PC, Amiga, etc) with a serial port (e.g.: Macintosh modem
  172.         port) interface. However, there *are* modems that are designed
  173.         specifically for use with the Macintosh. Internal Powerbook
  174.         modems, ADB modems, and internal NuBus modems are all examples.
  175.  
  176.         Assuming you wish to use an external modem, your only other
  177.         hardware consideration is to find an appropriate cable to connect
  178.         it to your Macintosh. Especially at higher bps rates (9600 bps
  179.         and up), a hardware-handshaking cable is recommended (see [1.2]
  180.         for details). There are many non-hardware-handshaking cables
  181.         being sold at reputable computer accessory stores, so it's
  182.         recommended that you ask before buying.
  183.  
  184.         Various special modems exist with unique features; the most
  185.         notable type is the dual FAX/modem. For more information,
  186.         visit comp.dcom.modems or your local dealer: there are simply
  187.         too many products to describe here.
  188.  
  189.  
  190. [1.2] What kind of cable do I need to use my external modem with my Macintosh?
  191. ------------------------------------------------------------------------------ 
  192.  
  193.         Most modems have a female DB-25 (25 pin) connector labelled
  194.         RS-232C on their backsides. All Macintoshes since the Mac Plus
  195.         use a mini DIN-8 (8 pin) connector for the two serial ports
  196.         (modem and printer). Earlier models use the larger DB-9 (9 pin)
  197.         connector. Finding a generic cable for any configuration should
  198.         not be very difficult at most computer accessory stores. They
  199.         are typically sold for around $25.
  200.  
  201.         However, especially at the higher bps rates (9600 bps and up),
  202.         a hardware handshaking cable is highly recommended. Attempting
  203.         to transfer files at high bps rates using a non-hardware-
  204.         handshaking cable will likely result in repeated transmission
  205.         errors, a drop in the transfer rate, and possibly an aborted
  206.         transmission. Since many non-hardware-handshaking cables are
  207.         still being sold, it's a good idea to ask before buying.
  208.  
  209.     One hardware handshaking cable available by mail-order is the
  210.     CompUnite High-Speed Mac modem cable, available for $14 (as of 
  211.     8/94) from Celestin Company (see the end of Part 4 of this FAQ 
  212.     for vendor information). This product has been listed as a BMUG 
  213.     (Berkeley, California Macintosh User's Group) Choice Product.
  214.  
  215.         If you want to "roll-your-own" or are having problems getting
  216.         your modem and your Macintosh to communicate, read on. The
  217.         serial ports on the Macintosh are not actually RS-232C ports
  218.         but are instead RS-422 compliant, a similar but better standard.
  219.         This explains some of the difficulty in implementing hardware-
  220.         handshaking.
  221.  
  222.         One way to wire your cable is as below:
  223.  
  224.                 Macintosh (DTE)                           Modem (DCE)
  225.                     DIN-8                                    DB-25
  226.  
  227.                 Pin  Signal                               Signal  Pin
  228.                  1    HSKo   ---------------------------   RTS     4
  229.                  2    HSKi   ---------------------------   CTS     5
  230.                  3    TxD-   ---------------------------   TxD     2
  231.                  4    GND    ---------------------------   GND     7
  232.                  5    RxD-   ---------------------------   RxD     3
  233.                  6    TxD+   (nc)                    .--   DSR     6
  234.                  7    GPi    (nc)                    '--   DTR    20 
  235.                  8    RxD+   ---------------------------   GND     7  
  236.  
  237.                     shield   ---------------------------   shield
  238.  
  239.                                 Figure 1.2.1
  240.  
  241.         If your modem cannot be configured to ignore DTR, or if you
  242.         are using an old 1200 bps or 2400 bps modem, the pinout in
  243.         Figure 1.2.1 is probably best. However, if you are using a
  244.         high-speed modem that can ignore DTR, and/or Remote AppleTalk,
  245.         you should instead use the pinout in Figure 1.2.2, which is
  246.         the pinout "recommended" by Apple:
  247.  
  248.                 Macintosh (DTE)                           Modem (DCE)
  249.                     DIN-8                                    DB-25
  250.  
  251.                 Pin  Signal                               Signal  Pin
  252.                  1    HSKo   ----------------------+----   RTS     4
  253.                                                    '----   DTR    20
  254.  
  255.                  2    HSKi   ---------------------------   CTS     5
  256.                  3    TxD-   ---------------------------   TxD     2
  257.  
  258.                  4    GND    ----+----------------------   GND     7
  259.                  8    RxD+   ----'
  260.  
  261.                  5    RxD-   ---------------------------   RxD     3
  262.                  6    TxD+   (nc)                    
  263.                  7    GPi    ---------------------------   DCD     8
  264.  
  265.                     shield   ---------------------------   shield
  266.  
  267.                                 Figure 1.2.2
  268.  
  269.         Note: You can find a pretty picture of this PICT by using 
  270.         ResEdit to open the Apple Modem Tool Extension CTB tool.
  271.  
  272.         Note: Be careful! Although technically, you should not be able
  273.         to damage either your modem or computer by using an incorrectly
  274.         wired cable, you should always perform a connectivity test to
  275.         double-check your wiring before using your homemade cable.
  276.         Some serial devices place auxiliary voltages on non-standard
  277.         pins.
  278.         
  279.         Note: If you are having trouble finding or soldering a mini DIN-8
  280.         connector (they can be expensive and are rather small), it is
  281.         suggested you purchase a straight-through DIN-8 to DIN-8 cable
  282.         (often sold for use with serial port switches), cut it in half,
  283.         and wire each end to a DB-25 connector that can plug into your
  284.         modem (resulting in *two* cables).
  285.  
  286.     Note: The GPi pin is unused on all but the AV Macs. The pinout
  287.     diagrams are correct.
  288.  
  289.         Note: If you are running A/UX and are having difficulties
  290.         controlling your modem from software, see the comp.unix.aux FAQ
  291.         for the latest information on an A/UX specific cable.
  292.  
  293.  
  294.         Many people routinely ask for a pinout diagram for the mini DIN-8
  295.         connector; Figure 1.2.3 shows the pinout as if you were looking at
  296.         the (female) connector on your Macintosh; the (male) cable connector
  297.         will be a mirror image. (Figure artwork by Ben Cranston)
  298.  
  299.                      Mini DIN-8 Macintosh Serial Connector Pinout
  300.  
  301.                /------###------\         1 HSKo        Output Handshake
  302.              /        ###        \                      (Zilog 8530 DTR pin)
  303.            /                       \     2 HSKi/CLK    Input Handshake *OR*
  304.           /     [|]   [|]   [|]     \                   External Clock
  305.          /       8     7     6       \   3 TxD-        Transmit data (-)
  306.         |                             |
  307.         |                             |  4 Ground      Signal ground
  308.         |     ===       ===    ===    |
  309.         |      5         4      3     |  5 RxD-        Receive data (-)
  310.         |                             |
  311.         |                             |  6 TxD+        Transmit data (+)
  312.          \----+    ===   ===    +----/
  313.           \###|     2     1     |###/    7 N/C         (no connection)
  314.            \##|                 |##/
  315.              \|                 |/       8 RxD+        Receive data (+)
  316.                \------###------/
  317.                       ###
  318.  
  319.                                 Figure 1.2.3
  320.  
  321.          Finally, it should be noted that there is no *best* RS-422 to
  322.          RS-232 cable. You'll see many different wiring diagrams posted
  323.          to Usenet. Each usually has its own purpose and champion; the
  324.          two given in this FAQ, however, are fairly generic and one or
  325.          the other should work with most modems being sold today.
  326.  
  327.  
  328. [1.3] What do V.32, V.42, bis, MNP, etc mean?
  329. ---------------------------------------------
  330.  
  331.         Because these topics are universal telecommunications issues,
  332.         they are more fully discussed in comp.dcom.modems. However, a
  333.         short description of some of the more common abbreviations and
  334.         buzzwords is given below.
  335.  
  336.         An excellent article on the subject of modems, including
  337.         a guide to buying high-speed modems, is available from
  338.         InfoMac (sumex-aim) and its mirror sites as the file
  339.         info-mac/comm/info/modem-guide-11.hqx.
  340.         
  341.            Buzzword         What it typically means
  342.         ---------------   ----------------------------------------------
  343.         bit             : binary digit; amount of information necessary
  344.                           to distinguish between two equally likely
  345.                           events (such as the value of a binary digit)
  346.         byte            : eight bits; size of a single ASCII character
  347.         bps             : bits per second
  348.         baud            : one analog signal state change; people usually
  349.                           use baud and bps interchangeable, although most
  350.                           modern modems can encode multiple bits per baud
  351.         Bell 103        : 300 bps U.S. Standard
  352.         Bell 212A       : 1200 bps U.S. Standard
  353.         LAP/M           : Link Access Protocol/Modem.
  354.         MNP             : Microcom Networking Protocol (Proprietary)
  355.         MNP5            : MNP extension; 2 to 1 data compression.
  356.         V.32            : 9600bps, 4800bps
  357.         V.32bis         : 14.4Kbps, 12Kbps, 9600bps, 7200bps, 4800bps
  358.         V.32terbo       : psuedo-standard extending V.32bis to 16.8, 19.2 kbs
  359.         V.42            : MNP 4 and LAP/M modem to modem error correction
  360.         V.42bis         : LAP/M and 4-to-1 data compression.
  361.  
  362.                              Table 1.3.1
  363.  
  364.  
  365. [1.4] How fast can the Macintosh serial ports really go?
  366. --------------------------------------------------------
  367.  
  368.         The Macintosh operating system supports data rates up to 57600 bps,
  369.         but the Macintosh serial hardware can support transfer rates that
  370.         are much higher if they are externally clocked. Serial port
  371.         sound-input-devices such as the Cedar Technologies SID and
  372.         Farallon's MacRecorder, as well as AppleTalk boxes, use this trick
  373.         to achieve transfer rates greater than 100 Kbps.
  374.  
  375. Ward McFarland <70240.504@compuserve.com> writes:
  376.  
  377.     "The clock rate supplied by pre-AV Macs to the SCC (and used for bps 
  378.     rate generation) limits the maximum asynchronous serial speed to 
  379.     57,600 bps. The maximum synchronous speed is 16 times this (as used 
  380.     by the old serial hard drives used on 512K Macs and by the Personal 
  381.     LaserWriters).
  382.  
  383.     Indeed, the SCC can be externally clocked to faster asynchronous 
  384.     speeds, with a couple of limitiations.  First, the external clock
  385.     is applied to the Mac's CTS input, making it impossible to respond 
  386.     normally to normal modem handshake requests.  Second, since the SCC 
  387.     used in older Macs can only buffer 3 characters, data losses can occur
  388.     due to interrupt service delays. MacRecorder and other custom devices 
  389.     got around this by locking out all system interrupts during serial 
  390.     data transfer.
  391.  
  392.     The AVs and PowerMacs apparently use a different SCC clock, and I have
  393.     benchmarked fairly good ZModem performance using Smartcom II 4.0 at 
  394.     115,200 and 230,400 bps.  Apple does not publish the serial driver 
  395.     control call to set this, and they state they do not support such
  396.     speeds.  I do not know of anyone besides Hayes who has managed to get 
  397.     Apple to tell them the methodology.  
  398.  
  399.     Creative Solutions, Inc. [see the end of Part 4 of this FAQ for vendor
  400.     contact information] makes a NuBus card (the "Hustler") and soon will
  401.     make an external SCSI-based device that can support 2 channels at 
  402.     115,200 bps or one at 230,400 bps.  This is currently used by quite 
  403.     a number of people supporting high speed (28.8) modems and direct 
  404.     serial connections. This product works fine with existing 
  405.     communications and bulletin board system software."
  406.         
  407.         Note: Powerbooks are known to have problems at extremely high
  408.         data rates. These problems are caused by Power Manager overhead.
  409.         System 7.1 is supposed to solve or alleviate these problems.
  410.  
  411.         Note: AppleTalk being active can degrade serial port performance,
  412.         as can ethernet-network traffic. Turning of AppleTalk via
  413.         the Chooser, or disconnecting the ethernet transceiver, are
  414.         work-arounds.
  415.  
  416.         
  417. [1.5] How can I disable call-waiting when using my modem?
  418. ---------------------------------------------------------
  419.  
  420.         This varies depending on your local phone company, but often,
  421.         if you preced the phone number you wish to tone dial
  422.         with "*70," (omit the quotes but not the comma), you can
  423.         disable call-waiting FOR THAT CALL ONLY.
  424.         
  425.         If you have a strictly rotary dial line, try preceding the
  426.         phone number with "1170".
  427.  
  428.         In the United Kingdom, the code to use is #43#.
  429.  
  430. ================================================================================
  431. [2] File Formats and Conversion
  432. ===============================
  433.  
  434. [2.1] What is a resource (or data) fork?
  435. ----------------------------------------
  436.  
  437.         A Macintosh file has two parts: a data fork and a resource fork.
  438.         Text files and GIF image files are examples of Macintosh files
  439.         that are usually stored completely in the data fork, and have
  440.         an empty (or nonexistent) resource fork. Applications, as a
  441.         a counter-example, store most if not all of their information
  442.         in 'resources' in the resource fork and usually have an empty
  443.         data fork.
  444.         
  445.         Because this two-forked organization of files isn't very common,
  446.         transferring Macintosh files that have non-empty resource forks
  447.         to non-Macintosh machines (such as UNIX boxes, or MS-DOS machines)
  448.         requires special encoding, described below.
  449.  
  450.  
  451. [2.2] What is MacBinary?
  452. ------------------------
  453.  
  454.         MacBinary is a standard way of taking a Macintosh file (both
  455.         resource and data forks) and creating a new file with just
  456.         a data fork. This new file can then be transferred through
  457.         machines which know nothing about the native Macintosh file
  458.         system, without losing the information stored in the resource
  459.         fork.
  460.         
  461.         MacBinary also stores other information (such as the filename,
  462.         creation and modification dates, file type and creator) about
  463.         the original file.
  464.         
  465.         If you want to store some Macintosh files on a non-Macintosh
  466.         computer, one way is to convert them to a MacBinary format file
  467.         before transferring. Note that MacBinary files are useless to
  468.         people who are not using Macintosh computers. MacBinary's
  469.         purpose is to encapsulate *all* information contained in a
  470.         Macintosh file for transport over a non-Macintosh medium. For
  471.         this reason, you should not use MacBinary and/or BinHex to
  472.         post GIF images, for example, to Usenet because (1) GIF images
  473.         contain no Macintosh specific information and (2) doing so will
  474.         make it impossible for most non-Macintosh users to display your
  475.         image.
  476.  
  477.         Although a Macintosh program (called MacBinary) does exist
  478.         to do the converting to and from MacBinary, almost all modern
  479.         Macintosh telecommunications programs have the capability of
  480.         converting and unconverting MacBinary files for you. ZTerm,
  481.         for example, can be configured to automatically detect when
  482.         a MacBinary file is being received and to convert this file
  483.         to its original representation; or, if you are uploading,
  484.         ZTerm can optionally encode the file into MacBinary before
  485.         sending. Fetch, White Knight, and most other commercial and
  486.         shareware products have equivalent or similar capabilities.
  487.         
  488.         Dennis Brothers designed the original MacBinary standard many
  489.         years ago. Yves Lempereur incorporated this standard into
  490.         his Binhex 4.0 program (see [2.3]), solving a major problem
  491.         on Compuserve. About a year later, around the time the Mac Plus
  492.         came out, group discussions on Compuserve led to an enhancement
  493.         of the original MacBinary standard. Since then, BinHex 4.0 and
  494.         the new MacBinary have become the standard way of encapsulating
  495.         Macintosh files for transferring over foreign systems throughout
  496.         the Internet, Usenet, and elsewhere.
  497.  
  498.         MacBinary I is the name given to the old MacBinary standard.
  499.         MacBinary II is the name given to the new MacBinary standard
  500.         which everybody uses today; in common usage, MacBinary means
  501.         MacBinary II.
  502.         
  503.         
  504. [2.3] (a) What is BinHex? (b) What is uuencode? (c) What are atob/btoa ?
  505. ------------------------------------------------------------------------
  506.  
  507.         (a) A "binary" file is usually intended to describe a file which
  508.         does not always have the high bit in each byte set to zero.
  509.         Text and BinHex files are the most common examples of non-binary
  510.         data. Programs and images are common examples of binary data.
  511.         MacBinary files are specially encoded binary files (see 2.2]).
  512.         
  513.         Unfortunately, many network e-mail and Usenet gateways are only
  514.         receptive to non-binary files. To make it possible to send
  515.         binary files such as Macintosh MacBinary files through e-mail
  516.         or Usenet, it is necessary to convert these files to a text-
  517.         compatible form. BinHex and uuencode are two different ways
  518.         of doing this. Both BinHex and uuencode result in files that
  519.         are larger than the original binary version.
  520.                 
  521.         BinHex 4.0, by Yves Lempereur, is a binary to text translator
  522.         that can directly encode any Macintosh document (ie: it knows
  523.         how to convert information in both the resource and data forks).
  524.         BinHex files can be easily recognized since they begin with the
  525.         line:
  526.         
  527.                 (This file must be converted with BinHex 4.0)
  528.         
  529.         and are followed by a line starting with a colon, ':'. The
  530.         BinHex encoding of the file follows, and is ended with another
  531.         colon.
  532.         
  533.         There is in fact a program called "BinHex 4.0" in various
  534.         archives, but you don't have to use it to convert files to and
  535.         from BinHex. In fact, due to some bugs, it's best to use some
  536.         of the other more powerful utilities, such as HQXer, DeHqx,
  537.         StuffIt Expander and other StuffIt programs, and Compact Pro,
  538.         to name only a few. UNIX utilities (see [6.5]) that manipulate 
  539.         BinHex, MacBinary, and other types of Macintosh files are also 
  540.         available. StuffIt Expander has the advantage of also being able 
  541.         to automatically expand StuffIt, Compact Pro, and Applelink 
  542.         archives.
  543.  
  544.         Just about every Macintosh program posted appears as a BinHex
  545.         archive. Some Macintosh archives also store their files in BinHex
  546.         to allow users who don't have (or forget to use) binary mode in
  547.         FTP to succesfully transfer files. 
  548.  
  549.         BinHex files are denoted by the suffix ".hqx". The specifications
  550.         to BinHex, should you be an interested programmer, are available
  551.         at the University of Michigan's Macintosh archive site as
  552.         mac/misc/documentation/binhex4.0specs.txt, or at InfoMac sites 
  553.         as dev/info/binhex-40-specs.txt .
  554.  
  555.         There is also a program/format called "BinHex 5.0"; it is NOT
  556.         a more advanced version of "BinHex 4.0" but rather a separate
  557.         _binary_ format (it uses the entire eight-bit ASCII character
  558.         set and is thus not suitable for news postings or e-mail)
  559.         that was the precursor to MacBinary (see [2.2]). Converting
  560.         a file with BinHex 5.0 and then using BinHex 4.0 is another way
  561.         of converting a native Macintosh files with data and resource
  562.         forks into a format that can be e-mailed or posted (and then
  563.         reconstructed). MacBinary, however, is almost always used in
  564.         preference to BinHex 5.0.
  565.  
  566.         (b) "uuencode" is a binary to text translator that serves the
  567.         same purpose as BinHex, except that it knows nothing about the
  568.         Macintosh resource/data fork structure. uuencode was designed to
  569.         allow UNIX binary files to be easily transferred through text-
  570.         only interfaces, such as e-mail. Every uuencoded file contains
  571.         a line similar to:
  572.         
  573.                 begin 644 usa-map.gif
  574.                 
  575.         followed by a series of lines of ASCII text characters (which
  576.         are normally 60 characters long and begin with the letter 'M'). 
  577.         The file ends with a line containing the word 'end'. There may 
  578.         be other special keywords included.  Usually, one won't find 
  579.         Macintosh files in uuencode format; however, most non-Macintosh 
  580.         specific binary data posted to Usenet is uuencoded, so if you 
  581.         wish to use any of this data (such as the images posted in 
  582.         alt.binaries.* and elsewhere), you will need to deal with 
  583.         uuencode. The programs 'uuencode' and 'uudecode' exist on most 
  584.         UNIX systems. If not, ask a local expert to find them. Several 
  585.         programs allow you to convert to and from uuencode using your 
  586.         Macintosh; among these are UUTool 2.3.2 and UULite 1.7. 
  587.         uencoded files are usually denoted by the suffix ".uu".
  588.  
  589.         There is a StuffIt translator to handle uuencode conversion.
  590.     StuffIt Expander 3.5.1 with DropStuff 3.5.1 and Expander
  591.     Enhancer will also decode a uuencoded file.
  592.  
  593.     uuUndo, distributed with John Norstad's NewsWatch 2.0b13,
  594.     will also decode a uuencoded file.
  595.         
  596.         (c) atob and btoa are programs typically found on UNIX systems
  597.         that also convert between binary and ASCII-printable character
  598.         sets. Although not as popular as uuencode, btoa produces smaller
  599.         text-compatible versions of binary files that can be e-mailed or
  600.         posted on Usenet. Check your local man pages for details.
  601.         
  602.         There are StuffIt translators to handle atob/btoa conversion.
  603.  
  604.         
  605. [2.4] What is Apple-Single/Double ?
  606. -----------------------------------
  607.         
  608.         AppleDouble is another means of storing Macintosh files on
  609.         non-Macintosh computers or filesystems, particularly on UNIX
  610.         filesystems that also allow files to be mounted under the
  611.         Macintosh operating system via AppleShare (or an equivalent
  612.         product).
  613.  
  614.         AppleDouble files are actually two files. The data fork
  615.         of the corresponding Macintosh file is stored in a single
  616.         file just as it exists on the Macintosh using the original
  617.         filename. The resource fork is stored in a second file whose
  618.         name is obtained by prefixing the original filename with '%'.
  619.         More extensive documentation is available at ftp.apple.com.
  620.         
  621.         A few Macintosh programs decode these files; one such utility
  622.         is Tiger 1.11. The macutils UNIX utilities [see 6.5] may also
  623.         be useful. Eudora 1.4 and later also handles this format.
  624.         
  625.         If you are trying to figure out how to access the files in
  626.         the 'mac.bin' directory at ftp-archive maintained by the
  627.         University of Michigan, don't bother; all those files exist
  628.         in .hqx format in the 'mac' directory.
  629.  
  630.         
  631. [2.5] What do file suffixes like .hqx, .sit, .bin, etc ... mean and how
  632. -----------------------------------------------------------------------
  633.         can I convert such files back to normal Macintosh applications
  634.         and documents?
  635.         
  636.         Most files available by FTP or posted to Usenet are modified
  637.         twice to allow them to more easily pass through foreign computer
  638.         systems. Files may be compressed to make them smaller, and/or
  639.         they are almost always translated to either BinHex (.hqx) or
  640.         MacBinary (.bin) format (see [2.2] and [2.3] for an explanation
  641.         of these formats).
  642.         
  643.         How a Macintosh file has been translated and compressed for
  644.         transmission is indicated by its suffix.  Normally a file will
  645.         have a name similar in form to: filename.xxx.yyy, where:
  646.         
  647.                 .xxx indicates how it was compressed
  648.                 .yyy indicates how it was translated
  649.         
  650.         Usually, .xxx is one of: .cpt, .dd, .sea, .sit
  651.         Usually, .yyy is one of: .bin, .hqx, .image
  652.         
  653.         To convert a file back to its native Macintosh format, you will
  654.         typically need to go through one step per suffix. For example,
  655.         the filename "Swatch.cpt.hqx" indicates that a Compact Pro
  656.         archive (.cpt) "Swatch" has been translated to BinHex (.hqx).
  657.         To recreate the file(s) in the original archive, you must
  658.         first 'undo' the BinHex transformation, creating a Compact Pro
  659.         archive, and then open the Compact Pro archive and extract
  660.         the file(s) in the archive.
  661.  
  662.         You can use the following table to determine what Macintosh
  663.         programs decode which formats. For a more complete description
  664.         of the various Macintosh archival programs, see the excellent
  665.         FAQ for comp.sys.mac.apps.
  666.  
  667.       Suffix: .sit  .cpt  .hqx  .bin  .pit  .Z  .image  .dd  .zip  .uu  .tar
  668.   Extractors
  669. ----------------------------------------------------------------------------
  670.  StuffIt 3.0  | !     X     X     X     X    X           X     !    !     !
  671.  $ Expander   | X     X     X                        $
  672.  % SE+DS+EE   | X     X     X     X          X                 X    X
  673.  Compact Pro  | *     X     X
  674.  UULite 1.7   |                                                     X
  675.  MacCompress  |                              X
  676.  SunTar       |             X     X     X                                 X
  677.  BinHex 5.0   |                   X
  678.  BinHex 4.0   |             X
  679.  DiskDoubler  | *                       X                X
  680.  ZipIt        |                                                X
  681.  UnZip        |                                                X
  682.  DiskCopy     |                                    X
  683.  Packit       |                         X
  684.  MacGZip      |                  X
  685.  
  686.                                 Table 2.5.1
  687.  
  688.       ! Note: StuffIt Deluxe now includes translators for .tar, .uu,
  689.         MacBinary, atob, btoa, AppleLink packages, AppleSingle, DiskDoubler,
  690.         and UNIX compress. These translators can also be used with StuffIt
  691.         Lite. .arc and .zip translators are also distributed with StuffIt
  692.         Deluxe, but remain part of the commercial package. In order to
  693.         expand DiskDoubler archives, StuffIt uses inter-application
  694.         communication and hence requires DiskDoubler to be installed.
  695.  
  696.       %    "SE+DS+EE" means StuffIt Expander 3.5.1 with DropStuff and Expander
  697.     Enhancer 3.5.1 (the last of which is a separate product). StuffIt
  698.     Expander is free; DropStuff with Expander Enhancer is a $30
  699.     shareware product.
  700.       
  701.       $ 'Expander' refers to StuffIt Expander 3.5.1 which can decode BinHex,
  702.         StuffIt, Compact Pro, and (only with DropStuff and the Expander 
  703.     Enhancer) Applelink archives. It supports drag-and-drop under System 7. 
  704.     StuffIt Expander is distributed free by Aladdin Systems Inc. With 
  705.     DropStuff 3.5.1 and Expander Ehancer, it will also decode a uuencoded 
  706.     file.
  707.  
  708.       * StuffIt formats after 3.0 are recognized
  709.  
  710.  
  711.         The following file suffixes indicate formats that are native
  712.         to the Macintosh and which can be manipulated using the indicated
  713.         programs:
  714.         
  715.         .bin    MacBinary files; see [2.2]
  716.         .cpt    Compact Pro archive files; [see 3.6]
  717.         .dd     DiskDoubler archive files; [see 3.6]
  718.         .hqx    BinHex files; see [2.3], [3.7]
  719.         .image  Apple DiskCopy disk image file (typically used for
  720.                 distributing system software); latest version available
  721.                 via anonymous ftp from ftp.apple.com
  722.         .pit    Packit files; [see 3.6]
  723.         .sea    Self-extracting archive files; this usually denotes an
  724.                 application which can be double-clicked upon to create
  725.                 a decompressed version of the archive
  726.         .sit    StuffIt archive files; [see 3.6]
  727.         .sitd   mistakenly used to indicate files created by StuffIt
  728.                 Deluxe; *all* StuffIt files should be given the .sit
  729.                 extension (says the author!)
  730.         
  731.                                 Table 2.5.2
  732.  
  733.         
  734.         The following file suffixes indicate formats that are not native
  735.         to the Macintosh, but in most cases, files of these types can
  736.         be manipulated on the Macintosh using the indicated programs.
  737.         
  738.         .arc    MS-DOS PC archive file; ArcPop, MacArc, SE+DS+EE
  739.         .arj    MS-DOS PC archive file; unArjMac
  740.         .gif    Compuserve Graphics Interchange File; many programs,
  741.                 free, shareware and commercial exist to display and/or
  742.                 modify these images; some of the popular shareware ones
  743.                 are: QuickGIF and GIFConverter.
  744.         .lzh    Amiga or old MS-DOS PC archive file; LHarc or MacLHa
  745.         .shar   UNIX shell archive file; Unshar 1.5
  746.         .uu     UNIX uuencoded files; see [2.3]
  747.         .Z      UNIX 'compress' archive file; MacCompress 3.2, SE+DS+EE
  748.         .z      GNU ZIP file; typically created on UNIX; SE+DS+EE
  749.         .zip    MS-DOS PC archive file; UnZip, ZipPop, ZipIt, SE+DS+EE
  750.  
  751.         ! "SE+DS+EE" means StuffIt Expander 3.5.1 with DropStuff and Expander
  752.       Enhancer 3.5.1 (StuffIt Expander is free, and DropStuff with
  753.       Expander Enhancer is a $30 shareware product).
  754.  
  755.                                 Table 2.5.3
  756.  
  757. [2.6] How can I use a binary-downloaded file that appears as an
  758.       unusable text file on the Mac desktop?
  759. -----------------------------------------------------------------------------
  760.  
  761. Celeste Dolan    <celeste.dolan@ledge.com> responds:
  762.  
  763. A familiar problem, and one I've seldom been able to solve by changing
  764. the file type and creator of the "text file." The -39 is a "logical end
  765. of file" error, for what that may be worth.
  766.  
  767. I know of two methods that will restore the PC-downloaded file to a file
  768. that your Mac will recognize. Method #1 requires Apple File Exchange,
  769. which comes with your System Software set on the "Tidbits" disk. It also
  770. requires the Mac-to-MacBinary/MacBinary-to-Mac set of translators for
  771. AFE, which do NOT come with AFE on the System set. I found them on AOL a
  772. couple of years ago, but they are probably available at some of the
  773. usual ftp sites. Put the translators in the same folder as AFE and open
  774. AFE. Make sure BOTH drive windows are active and choose "MacBinary to
  775. Mac" from the menu called either "Mac to Mac" (if you don't have a DOS
  776. disk in your floppy drive or you're running something like PC File
  777. Exchange that lets you access DOS disks from the desktop) or "PC to Mac"
  778. (DOS disk in floppy drive and no DOS-mounting software running).
  779. Highlight the file that needs fixing and hit the "translate" button in
  780. the center of the screen. The translated file will have its proper Mac
  781. icon and behave the way you expect it to.
  782.  
  783. Method #2 uses StuffIt. I have tested this with StuffIt Deluxe 3.0.7,
  784. but not with StuffIt Lite 3.0.7 (shareware version). Open StuffIt, and
  785. make sure you have your preferences set to show the "Translate" menu. Go
  786. to this menu and choose "MacBinary" from the translator list. A submenu
  787. with the choices "encode" and "decode" will appear. Hold down the OPTION
  788. KEY, choose "decode" and navigate to the file you want to fix. (In my
  789. experience, the file may not show up in the window if you don't hold the
  790. OPTION key down.) Tell StuffIt to open the file and then where to save
  791. the decoded file. Save, and you'll have a usable file.
  792.  
  793. Patrick Hoepfner <hoepfner@haiti.gsfc.nasa.gov> adds:
  794.  
  795. Method #2 1/2. Drop the file onto StuffIt Expander.
  796.  
  797.  
  798.